/**
 * Project: ld.biz.service
 * 
 * File Created at 2012-9-23
 * $Id$
 * 
 * Copyright 1999-2100 Alibaba.com Corporation Limited.
 * All rights reserved.
 *
 * This software is the confidential and proprietary information of
 * Alibaba Company. ("Confidential Information").  You shall not
 * disclose such Confidential Information and shall use it only in
 * accordance with the terms of the license agreement you entered into
 * with Alibaba.com.
 */
package com.liangdev.biz.core.autocode;

import java.util.List;

import com.liangdev.biz.entity.autocode.TableMetaData;

/**
 * TODO Comment of DBMetaDataCollector
 * 
 * @author chongan.wangca
 */
public interface DBMetaDataCollector {

    /**
     * 获取所有表信息,不含字段信息
     * 
     * @param ip
     * @param port
     * @param user
     * @param password
     * @return
     */
    public List<TableMetaData> getAllTables(String ip, String port, String dbName, String user,
                                            String password) throws Exception;

    /**
     * 获取表信息，含字段信息
     * 
     * @param ip
     * @param port
     * @param user
     * @param password
     * @return
     */
    public TableMetaData getTable(String tableName, String ip, String port, String dbName,
                                  String user, String password) throws Exception;
}
